from messAround.util.database import BaseModel, BaseModelField
from sqlalchemy import Column
from sqlalchemy import VARCHAR, Integer


# AcFun排行榜
class AcFunRankModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_acfun_rank'
    nav_channel_id = Column(Integer, default=0)
    channel_id = Column(Integer, default=0)
    channel_name = Column(VARCHAR(1000))
    title = Column(VARCHAR(1000))
    info = Column(VARCHAR(1000))
    cover = Column(VARCHAR(1000))
    video = Column(VARCHAR(1000))
    video_id = Column(Integer, default=0)
    video_duration = Column(Integer, default=0)
    mobile = Column(VARCHAR(1000))
    play_count = Column(Integer, default=0)
    danmaku_count = Column(Integer, default=0)
    share_count = Column(Integer, default=0)
    like_count = Column(Integer, default=0)
    author_id = Column(Integer, default=0)
    author_name = Column(VARCHAR(1000))
    author_fans = Column(Integer, default=0)
    author_avatar = Column(VARCHAR(1000))
    author_signature = Column(VARCHAR(1000))


# A站热搜
class AcfunSearchModel(BaseModel.base, BaseModelField):
    __tablename__ = 'hot_acfun_search'
    keyword = Column(VARCHAR(1000))
    link = Column(VARCHAR(1000))
